import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'load_image.dart';

/// 目前：市场立项 申请，待办，查看 通用标题
class SaleProjectTile extends StatelessWidget {
  final String title;
  final int? height;
  final EdgeInsets? padding;

  SaleProjectTile({Key? key, required this.title, this.height, this.padding});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 90.h,
      width: MediaQuery.of(context).size.width,
      padding: padding,
      child: Align(
        alignment: AlignmentDirectional.centerStart,
        child: Row(
          children: [
            LoadAssetImage("widgets/sale_project_title_slice", width: 4.w, height: 31.h),
            SizedBox(width: 12.w),
            Text(
              title,
              style: TextStyle(color: Color(0xFF333333), fontSize: 30.sp),
            ),
          ],
        ),
      ),
    );
  }
}
